/******************************************************************************
*
* This file is part of FreeTrack (http://code.google.com/p/qtfreetrack).
* BY Willy Gardiol (willy@gardiol.org)
*
* FreeTrack is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* FreeTrack is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Foobar.  If not, see <http://www.gnu.org/licenses/>
*
******************************************************************************/
#ifndef ABOUTDIALOG_H
#define ABOUTDIALOG_H

#include <QDialog>
#include "IncFreeTrack.h"
#include "freetrackwidget.h"

class FTPushButton;
class FTTabWidget;
class FTShowText;
class FTLabel;

class AboutDialog : public FreeTrackWidget
{
    Q_OBJECT

public:
    explicit AboutDialog(QWidget *parent = NULL);
    ~AboutDialog();

private:
    // Open the default browser with a link
    void openUrl( QString );

    // On top we have this:

    // Version label
    FTLabel* version;
    // Author label
    FTLabel* author;
    // Send email to Willy
    FTPushButton* contact;
    // GPL label
    FTLabel* license;

    // In the middle we have the tabs:
    // The tab widget
    FTTabWidget* tabs;

    // Quickstart tab stuff
    FTShowText* tabQuickstart;

    // Map howto tab
    FTShowText* tabMaps;

    // Tracks howto tab
    FTShowText* tabTracks;

    // tab about main
    QWidget* tabAbout;
    FTShowText* aboutText;
    FTPushButton* aboutQt;
    FTPushButton* simograndi;
    FTPushButton* openNokialino;

    // tab support stuff
    QWidget* tabSupport;
    FTShowText* supportText;
    FTPushButton* home;
    FTPushButton* support;
    FTPushButton* paypal;

    // Close button
    FTPushButton* close;

    QLayout* createHorizontal();
    QLayout* createVertical();

public slots:
    void infoqt();
    void urlNokialino();
    void urlPaypal();
    void urlHomepage();
    void urlIssues();
    void urlWillygardiol();
    void urlSimograndi();

};

#endif // ABOUTDIALOG_H
